﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infrastructure.Logging
{
    public interface ILogger
    {
        string Identity { get; set; }
        /// <summary>
        /// 写日志
        /// </summary>
        /// <param name="level">级别</param>
        /// <param name="content">内容</param>
        void Write(Level level,object content);
    }

    public enum Level
    {
        Fatal=0,
        Error=1,
        Warn=2,
        Info=3,
        Debug=4,
        Other = 5
    }
}
